N=0
sum=0
while N<=0:
    N = int(input('请输入一个正整数：'))
while N > 0:
    sum=sum+N
    N=N-1
print(sum)